package cn.bjc.user.domain;

import cn.bjc.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data   //包含get,set,toString
@AllArgsConstructor //有参构造
@NoArgsConstructor  //无参构造
public class User extends BaseDomain {

    //用户姓名
    private String username;

    //电话
    private String phone;

    //电子邮件
    private String email;

    //盐值
    private String salt;

    //密码
    private String password;

    //状态
    private Integer state = 1;

    //年龄
    private Integer age;

    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createtime = new Date();

    //头像
    private String headImg;

    //对应的登录id
    private Long logininfo_id;

}
